home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / COMM / PCCP038.ARJ / EMU.H < prev    next >
C/C++ Source or Header  |  1992-06-13  |  2KB  |  87 lines

  1. /* Released to the Public Domain in 1992 by Peter Edward Cann. */
  2.  
  3.  
  4. /* Substitution Tokens for Function Sequences */
  5. /* n&0xff00 must be nonzero!!! */
  6.  
  7. #define END 0x0100
  8. #define BINCOL 0x0101
  9. #define BINROW 0x0102
  10. #define ASCDECCOL 0x0103
  11. #define ASCDECROW 0x0104
  12. #define ASCDECSEMILIST 0x0105
  13. #define GRABCHAR 0x0106
  14. #define GRAPHCHAR_T 0x0107
  15.  
  16.  
  17. /* Function Codes for Function Sequences */
  18.  
  19. #define CLEAR 0
  20. #define HOME 1
  21. #define CLREOL 2
  22. #define UP 3
  23. #define DOWN 4
  24. #define LEFT 5
  25. #define RIGHT 6
  26. #define GOTO 7
  27. #define NORMAL 8
  28. #define FAINT 9
  29. #define NOFAINT 10
  30. #define BOLD 11
  31. #define NOBOLD 12
  32. #define BLINK 13
  33. #define NOBLINK 14
  34. #define INVERSE 15
  35. #define NOINVERSE 16
  36. #define UPN 17
  37. #define DOWNN 18
  38. #define LEFTN 19
  39. #define RIGHTN 20
  40. #define ANSIATTRIB 21
  41. #define WRAP 22
  42. #define NOWRAP 23
  43. #define GOTOLINE 24
  44. #define GOTOCOL 25
  45. #define WYSEATTR 26
  46. #define GRAPHCHAR 27
  47. #define BEGGRAPH 28
  48. #define ENDGRAPH 29
  49. #define TAB 30  /* Non-destructive */
  50. #define BELL 31
  51. #define DTAB 32  /* Destructive */
  52. #define CRLF 33
  53. #define NOOP 34
  54. #define LASTFUN 34
  55.  
  56.  
  57. /* Miscellaneous */
  58.  
  59. #define NFUNCS 32  /* Number of Sequences */
  60. #define FUNLEN 16
  61.  
  62. #define KEYLEN 16
  63.  
  64. struct emu_s
  65.     {
  66.     struct
  67.         {
  68.         short codes[FUNLEN];
  69.         short func;
  70.         }
  71.         funcs[NFUNCS];
  72.     struct
  73.         {
  74.         short len;
  75.         unsigned char chars[KEYLEN];
  76.         char nullpause_p;
  77.         }
  78.         keys[256];
  79.     char gchars[256];
  80.     int tophi_p;
  81.     int binrowoff;
  82.     int bincoloff;
  83.     int default_wrap_p;
  84.     };
  85.     
  86. extern struct emu_s emu;
  87.